package com.example.futureai.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Name;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @ClassName: BasePo
 * @Description:
 * @Author: YourName
 * @Date: 2025/2/27
 */
@Data
public class BasePo {
    @TableId
    @Name
    @Column("id")
    private String id;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    @Column("create_time")
    private LocalDateTime createTime;

    //更新时间
    @TableField(fill = FieldFill.UPDATE)
    @Column("update_time")
    private LocalDateTime  updateTime;

    //创建人
    @TableField(fill = FieldFill.INSERT)
    @Column("create_by")
    private String createBy;

    //修改人
    @TableField(fill = FieldFill.UPDATE)
    @Column("update_by")
    private String updateBy;

}
